cpp 小tips

STL

vector

emplace_back 比 push_back 效率更高!
push_back需要创造元素,然后将其移入vector。而emplace_back是直接在对应地址生成元素,更加高效! #cpp11